package Override;

import jdk.swing.interop.SwingInterOpUtils;

public class Override {
    public static void main(String[] args) {
        Fish f = new Fish();
        f.move();
    }
}

class Animal{
    public void move(){
        System.out.println("移动");
    }
}

class Fish extends Animal{
    public void move(){
        System.out.println("游动");
    }
}

class Bird extends Animal{
    @java.lang.Override
    public void move(){
        System.out.println("飞行");
    }
}

class Dog extends Animal{
    @java.lang.Override
    public void move() {
        super.move();
    }
}



